package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 商城类目表 mallcategory
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
public class Mallcategory extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 商城类目表ID */
	private Integer mallcategoryId;
	/** 商城类目名称 */
	private String name;
	/** 展示优先级 */
	private Integer sortPriority;
	/** 创建时间*/
	private Date createTime;
	/** 修改时间 */
	private Date updateTime;
	/** 扩展字段 */
	private String attribute;
	/**
	 * 标示符号
	 */
	private boolean flag = false;

	public void setMallcategoryId(Integer mallcategoryId) 
	{
		this.mallcategoryId = mallcategoryId;
	}

	public Integer getMallcategoryId() 
	{
		return mallcategoryId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setSortPriority(Integer sortPriority) 
	{
		this.sortPriority = sortPriority;
	}

	public Integer getSortPriority() 
	{
		return sortPriority;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mallcategoryId", getMallcategoryId())
            .append("name", getName())
            .append("sortPriority", getSortPriority())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}
}
